<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>圣杯布局2</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
        body,html{
            width: 100%;
            height: 100%;
            min-width: 960px;
        }
        header {
            width: 100%;
            height: 10%;
            background-color: cyan;
            min-width: 960px;
        }

        main {
            width: 100%;
            height: 80%;
            background-color: purple;
        }
        aside{
            width: 30%;
            height: 100%;
            background-color: wheat;
            float: left;
        }

        footer {
            width: 100%;
            height: 10%;
            background-color: gray;
        }
        .center{
            float: left;
            width: 50%;
            height: 100%;
        }
        .right{
            float: right;
            width: 20%;
            height: 100%;
        }
    </style>
</head>
<body>
<header></header>
<main>
    <div style="float: left;width: 100px;height: 100%">left</div>
    <div class="center" style="float: left;width: calc(100% - 200px);background-color:#fff;">center</div>
    <div class="right" style="width: 100px;height: 100%">right</div>
</main>
<footer></footer>
</body>
</html>
